package com.tsl.prevention.modules.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户接种疫苗
 * </p>
 *
 * @author Lionel
 * @since 2021-03-20
 */
@TableName("user_vaccine")
public class Vaccine implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 接种用户id
     */
    private String userId;

    /**
     * 接种状态1：已接种2：待接种3：已取消
     */
    private String state;

    private String address;

    /**
     * 预约接种时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date forwardTime;
    /**
     * 预约接种时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date twiceTime;


    private LocalDateTime createtime;

    private LocalDateTime updatetime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getForwardTime() {
        return forwardTime;
    }

    public void setForwardTime(Date forwardTime) {
        this.forwardTime = forwardTime;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public Date getTwiceTime() {
        return twiceTime;
    }

    public void setTwiceTime(Date twiceTime) {
        this.twiceTime = twiceTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Vaccine{" +
        "id=" + id +
        ", userId=" + userId +
        ", state=" + state +
        ", forwardTime=" + forwardTime +
        ", createtime=" + createtime +
        ", updatetime=" + updatetime +
        "}";
    }
}
